package Class.Constructor;

/**
 * Enjoy programming!!!
 * Time: 2021/11/7 -  21:29
 */
public class Test00 {
    public static void main(String[] args){
Person1 p = new Person1();
Person1 p1 = new Person1("jack",30);
System.out.println( "p:" + p.age + " " + p.name);
System.out.println( "p1:" + p1.age + " " + p1.name);

    }
}
class Person1{
    int age;
    String name;
    public Person1(){
        age = 18;
    }
    public Person1(String pName, int pAge){
        name = pName;
        age = pAge;
    }
}
